package mju.cxf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 广告表实例
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("cxf_activity") // 表示对应的数据库表名为 "cxf_activity"
public class Activity {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;         // 广告编号

    private String imageUrl;         //图片

    private String title;         //广告标题

    private String content;         //广告内容

    private LocalDateTime startTime;         //开始时间

    private LocalDateTime endTime;         //结束时间

    private Integer type;         // 广告类型

    private String remarks;         //备注

    private Integer status;         //状态

    private LocalDateTime createTime;         //创建时间
}